# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/28 下午5:57
 @Author  : tgy
 
"""
from  functools import partial

def test01():
    ...
    with open('info.log','rt') as f:
        for con in iter(partial(f.read,5),''):
            print(con)

if __name__ == '__main__':
    ...
    test01()